home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ MSI Options 1.xpl < prev    next >
Text File  |  1999-07-15  |  2KB  |  64 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Software Installation\Windows Installer"
  5. "NAME"="MSI Options - User"
  6. "VERSION"="1.0"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Search for alternative sources (transform)"
  9. "TEXT 2"="Enable browsing for source files"
  10. "TEXT 3"="Enable rollback feature"
  11. "DESCRIPTION 1"="Internet Explorer 5, Office 2000 and Windows 2000 use a new standard for installing applications: the Windows Installer (aka MSI). "
  12. "DESCRIPTION 2"="Be sure not to deactivate option #3: If an installation fails and this option is activated, MSI has no chance to restore the system to the previous state."
  13. "DESCRIPTION 3"="If you are sure that you don't need this feature, deactivating this option will preserve a lot of HD space during an installation."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  17.  
  18.  
  19. sPathUsr="HKCU\Software\Policies\Microsoft\Windows\Installer\"
  20.  
  21. sV2="TransformsAtSource" 'DW - usr
  22. sV3="DisableBrowse" ' DW - usr
  23. sV4="DisableRollback" 'DW - usr
  24.  
  25. Sub Plugin_Initialize 
  26.  i=RegReadValue(sPathUsr & sV2)
  27.  if i=1 then setuielement 1,true
  28.  
  29.  i=RegReadValue(sPathUsr & sV3)
  30.  if i=0 or IsEmpty(i) then setuielement 2,true
  31.  
  32.  i=RegReadValue(sPathUsr & sV4)
  33.  if i=0 or IsEmpty(i) then setuielement 3,true
  34. End Sub
  35.  
  36. Sub Plugin_CheckData(ElementIndex)
  37. End Sub
  38.  
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  b=GetUIElement(1)
  41.  if b=true then
  42.     Call RegWriteValue(sPathUsr & sV2,1,2)
  43.  else
  44.     Call RegWriteValue(sPathUsr & sV2,0,2)
  45.  end if
  46.  
  47.  b=GetUIElement(2)
  48.  if b=false then
  49.     Call RegWriteValue(sPathUsr & sV3,1,2)
  50.  else
  51.     Call RegWriteValue(sPathUsr & sV3,0,2)
  52.  end if
  53.  
  54.  b=GetUIElement(3)
  55.  if b=false then
  56.     Call RegWriteValue(sPathUsr & sV4,1,2)
  57.  else
  58.     Call RegWriteValue(sPathUsr & sV4,0,2)
  59.  end if
  60. End Sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.